package com.hzcc.tagmanagesystemapi.module.entity.po;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author 早睡蛋
 * @Date 2022/5/22 13:46:46
 * @Desc:API文档实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "api_file")
public class ApiFile implements Serializable {
    /**
     * 主键id
     */
    @TableId(value = "id")
    @ApiModelProperty(name = "id",value = "主键id" ,required = false)
    private String id;

    /**
     * api名字
     */
    @ApiModelProperty(name = "api名字",value = "api名字" ,required = false)
    private String apiName;

    /**
     * 文档内容
     */
    @ApiModelProperty(name = "文档内容",value = "文档内容" ,required = false)
    private String apiContent;

    /**
     * 创建时间
     */
    @ApiModelProperty(name = "创建时间", value = "创建时间，自动生成" ,required = false)
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(name = "更新时间", value = "更新时间，自动生成" ,required = false)
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

}
